function formhash(form, password) {
   // Create a new element input, this will be out hashed password field.
   var p = document.createElement("input");
   // Add the new element to our form.
   form.appendChild(p);
   p.name = "p";
   p.type = "hidden"
   p.value = hex_sha512(password.value);
   // Make sure the plaintext password doesn't get sent.
   password.value = "";
   // Finally submit the form.
   form.submit();
   
   
}
/*
harfleriBuyut = function(obj){
    
	var deger = obj.value.toLowerCase();
    
    var yeniDeger = '';
    deger = deger.split(' ');
    for(var i=0; i < deger.length; i++){
        yeniDeger += deger[i].substring(0,1).toUpperCase() + deger[i].substring(1, deger[i].length) + ' ';
        obj.value = yeniDeger;
    }
}


function BuyukHarf(e) { var nesne = e.target ? e.target : e.srcElement; var basilantus = e.charCode == undefined ? e.keyCode : e.charCode; var str = String.fromCharCode(basilantus); if ((basilantus < 97 || basilantus > 122) && !isTRChar(basilantus)) return true; if (basilantus == 105) str = '\u0130'; if (nesne.createTextRange) { e.keyCode = str.toUpperCase().charCodeAt(0); return true; } else { var startpos = nesne.selectionStart; var endpos = nesne.selectionEnd; nesne.value = nesne.value.substr(0, startpos) + str.toUpperCase() + nesne.value.substr(endpos); nesne.setSelectionRange(startpos + 1, startpos + 1); return false; } }
function isTRChar(key) { var trchar = [231, 246, 252, 287, 305, 351]; for (var i = 0; i < trchar.length; i++) { if (trchar[i] == key) return true; } return false; }
function BuyukHarfBlur(e, clear) { var nesne = e.target ? e.target : e.srcElement; var val = nesne.value; val = val.replace(/i/g, "\u0130").replace(/^\s+|\s+$/g, ""); if (clear) val = val.replace(/\s{2,}/g, " "); nesne.value = val.toUpperCase(); } /** 
 * End BuyukHarf()
 */